﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PictureProcessing.Comm;

namespace PictureProcessing
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 数据分拣
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDataSorting_Click(object sender, EventArgs e)
        {
            if (CheckActivateCode.CheckCode())
            {
                FrmDataSorting frm = new FrmDataSorting();
                frm.ShowDialog();
            }
            else 
            {
                FromActivateCode frmcode = new FromActivateCode();
                frmcode.Show();
            }

        }

        /// <summary>
        /// 数据处理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDataProcessing_Click(object sender, EventArgs e)
        {
            if (CheckActivateCode.CheckCode())
            {
                FrmDataProcessing frm = new FrmDataProcessing();
                frm.ShowDialog();
            }
            else 
            {
                FromActivateCode frmcode = new FromActivateCode();
                frmcode.Show();
            }
            
        }
    }
}
